@file:Suppress("unused")

package com.example.demo.model.blog

import xyz.erupt.annotation.*
import xyz.erupt.annotation.sub_field.*
import xyz.erupt.upms.model.base.*
import javax.persistence.*

@Erupt(name = "图片分类", orderBy = "sort")
@Table(name = "blog_picture_category")
@Entity
class PicturesCategory : HyperModel() {

    @EruptField(
        views = [View(title = "名称")],
        edit = Edit(title = "名称", notNull = true),
    )
    var name: String = ""

    @EruptField(
        views = [View(title = "排序")],
        edit = Edit(title = "排序", notNull = true),
    )
    var sort: Int = 0

}